<?php
class Social_Application_Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initL10n()
    {
        //$locale = new Zend_Locale('auto');
        $locale = new Zend_Locale('de');
        Zend_Registry::set('Zend_Locale', $locale);
        
    	$translate = new Zend_Translate('gettext', APPLICATION_PATH . '/languages/de', 'de');
    	$translate->addTranslation(APPLICATION_PATH . '/languages/en', 'en');
    	$translate->setLocale($locale);
    	Zend_Registry::set('Zend_Translate', $translate);
    }
    
    
    protected function _initRouter()
    {
    	$router = Zend_Controller_Front::getInstance()->getRouter();
    	
    	$routes = require_once CONFIG_PATH . '/routes.php';
    	foreach ($routes as $routeName => $route) {
    	    $router->addRoute($routeName, $route);
    	}
    }
    
}